import request from '@/utils/request'

// 重点取水户列表
const focusWaterIntakeList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersKey/getWaterUsersKeyList',
    method: 'post',
    data: params
  })
}

// 普通取水户列表
const ordinaryWaterIntakeList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersKey/getWaterUsersConfigList',
    method: 'post',
    data: params
  })
}

// 设置添加重点取水户
const setFocusWaterIntake = function (wpcCd) {
  return request({
    url: '/zy-api/api/waterUsersKey/addWaterUsersConfig',
    method: 'post',
    data: { wpcCd }
  })
}

// 删除重点取水户
const delFocusWaterIntake = function (wpcCd) {
  return request({
    url: '/zy-api/api/waterUsersKey/delWaterUsersConfig',
    method: 'post',
    data: { wpcCd }
  })
}

export {
  focusWaterIntakeList,
  ordinaryWaterIntakeList,
  setFocusWaterIntake,
  delFocusWaterIntake
}